<template>
    <div class="front borrowOrder">
        <status-menu/>
        <div class="front-padding">
            <v-menu/>
            <div class="table bj bg-white" v-loading="loading[0]" element-loading-text="拼命加载中..." element-loading-spinner="el-icon-loading" element-loading-background="#fff">
                <el-scrollbar style="height: 100%;">
                    <v-table/>
                </el-scrollbar>
            </div>
        </div>
    </div>
</template>
<script>
import statusMenu from './statusMenu'
import menu from './menu'
import table from './table'
export default {
    components: {
        'status-menu': statusMenu,
        'v-menu': menu,
        'v-table': table
    },
    data() {
        return {
            loading: this.$store.state.borrowOrderStore.loading
        }
    },
    methods: {
        
    },
    created() {
        this.$store.commit('borrowOrderStore/updateStatus', 0);      //初始化状态为0，未审核状态
        this.$store.dispatch('borrowOrderStore/getOrderTableDataByBtnStutas');
    }
}
</script>
<style scoped>
    .front-padding {height: calc(100% - 62px);}
    .table {height: calc(100% - 54px);}
    .table .el-table {height: 100% !important;}
</style>